package com.zsd.android.common.retrofit

import io.reactivex.Observable
import io.reactivex.functions.Function

class BaseFunc<T> : Function<Throwable, Observable<out T>> {

    override fun apply(t: Throwable): Observable<out T> {
        return Observable.error(FactoryException.analysisException(t))
    }
}